#ifndef OPTIONITEM_H
#define OPTIONITEM_H

#include <QWidget>
#include <option.h>

namespace Ui {
class OptionItem;
}

class OptionItem : public QWidget
{
    Q_OBJECT

public:
    explicit OptionItem(QWidget *parent = nullptr);
    void update(Option option);
    void setSelected();
    void clearSelected();
    ~OptionItem();
    Option option;
signals:
    void changeStatus(short status,long id);
    void deleteSignal();


private:
    Ui::OptionItem *ui;
    // 0 未选择
    // 1 半选中
    // 2 完全选中
    short status = 0;
};

#endif // OPTIONITEM_H
